package com.wgworkshop.pems.repository;

import com.wgworkshop.pems.entity.AttendanceEntity;
import com.wgworkshop.pems.entity.StudentEntity;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * 考勤库。
 * Created by wlc on 2017/7/9.
 */
@Repository
public interface AttendanceRepository extends CrudRepository<AttendanceEntity, Long>, AttendanceRepositoryCustom {
    Iterable<AttendanceEntity> findByCourseDateBetweenAndStudentIdIn(Date start, Date end, List<Long> ids);
}
